package com.tianji.learning.controller;


import com.tianji.learning.domain.query.PointsBoardQuery;
import com.tianji.learning.domain.vo.PointsBoardItemVO;
import com.tianji.learning.domain.vo.PointsBoardVO;
import com.tianji.learning.service.IPointsBoardSeasonService;
import com.tianji.learning.service.IPointsBoardService;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 积分榜
 * @since 2023-04-17
 */
@RestController
@RequestMapping("/points-board-season")
@RequiredArgsConstructor
public class PointsBoardSeasonController {

    private  final IPointsBoardService seasonService;

    @GetMapping("/boards")
    @ApiOperation("积分排行榜接口")
    public PointsBoardVO PagePoints(PointsBoardQuery query){
        return seasonService.PagePoints(query);
    }


}
